<script setup>
import TableComponent from "@/components/tables/TableComponent.vue";
const module = import.meta.globEager("@/apis/goods/brand.js");

const column = {
  id: {
    label: "ID", // 表头显示文字
    show: false, // 是否显示
    editable: false, // 是否可编辑
    fixed: false, // 表格的列是否固定：可选 true | false | left | right
    sortable: true, // 是否可排序
    type: "number", // 字段类型
  },

  name: {
    label: "课时折算名称",
    show: true,
    editable: true,
    fixed: false,
    sortable: false,
    type: "text",
  },
  categoryId: {
    label: "分类",
    show: true,
    editable: true,
    fixed: false,
    sortable: false,
    type: "number",
  },
  unitId: {
    label: "单位",
    show: true,
    editable: true,
    fixed: false,
    sortable: false,
    type: "number",
  },
  factor: {
    label: "系数",
    show: true,
    editable: true,
    fixed: false,
    sortable: false,
    type: "number",
  },
};
</script>

<template>
  <TableComponent :module="module" :column="column" :recovery="true" />
</template>
